# -*- mode: snippet -*-
# name: angular.controller
# key: acontroller
# --
.controller('${1:MyController}', ['$scope', '${2:$(yas/substr yas-text "[^ ]*")}', function ($scope, ${2:$http}) {
  console.log('${1:$(yas/substr yas-text "[^ ]*")} registered');
  var that = this;
  $scope.fn1 = function () {
    $0
  };
}])
